<template>
	<view class="wish-text">
		<text v-if="list[0]">{{list[0]}}</text>
		<template v-if="list[1]">
			<icon-heart></icon-heart>{{list[1]}}
		</template>
	</view>
</template>

<script>
	export default{
		props:{
			text:''
		},
		computed:{
			list(){
				if(!this.text){
					return []
				}
				return this.text.split('${xinyuanzhi}')
			}
		}
	}
</script>

<style scoped>
	.wish-text{
		display: flex;
		align-items: center;
		font-size: inherit;
	}
</style>
